<?php
// +----------------------------------------------------------------------
// | CoreThink [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.corethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: jry <598821125@qq.com> <http://www.corethink.cn>
// +----------------------------------------------------------------------
namespace Admin\Controller;
use Think\Controller;
/**
 * 后台用户控制器
 * @author jry <598821125@qq.com>
 */
class AjaxController extends Controller{
	
	public function getRegion(){
		$Region=M("Region");
		$map['pid']=$_REQUEST["pid"];
		$map['type']=$_REQUEST["type"];
		$list=$Region->where($map)->select();
		echo json_encode($list);
	}
	
	public function get_user_id($employee_num){
		echo M("employee")->where("employee_num='$employee_num'")->getField('id');
	}

	public function get_customer_id($customer_num){
		echo M("customer")->where("customer_num='$customer_num'")->getField('id');
	}
	
	public function get_customer_name($customer_name){
		echo M("Customer")->where("customer_name='$customer_name'")->getField('id');
	}
 
public function get_project_id($project_number){
		echo M("project")->where("project_number='$project_number'")->getField('id');
	}

 


























	
}
	